package com.hotel_management_backstage.lin.service.staffManagement;

import com.hotel_management_backstage.lin.dao.staffManagement.SysUserStaffMapper;
import com.hotel_management_backstage.lin.entity.staffManagement.SysUserStaff;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserStaffService {
    @Autowired
    private SysUserStaffMapper sysUserStaffMapper;

    SysUserStaff selectByUserId(int id){
        return sysUserStaffMapper.selectByUserId(id);
    }

    SysUserStaff selectByStaffId(int id) {
        return sysUserStaffMapper.selectByStaffId(id);
    }

    void insertSysUserStaff(SysUserStaff sysUserStaff){
        sysUserStaffMapper.insertSysUserStaff(sysUserStaff);
    }

    void deleteSysUserStaffByUserId(int userId){
        sysUserStaffMapper.deleteSysUserStaffByUserId(userId);
    }
}
